package com.zhxt.system.domain;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 管理干部
 */

@Getter
@Setter
public class ZhxtLeader {
    //自增主键
    private int id;
    //年月
    private String yearmon;
    //机构代码
    private String tjcode;
    //机构名称
    private String tjname;
    //部门名称
    private String deptname;
    //工号
    private String empno;
    //姓名
    private String empname;
    //岗位名称
    private String gwname;
    //电话
    private String phone;
    //头像
    private String headimg;
    public ZhxtLeader() {
        this.id = this.id;
        this.yearmon = StringEscapeUtils.escapeHtml4(this.yearmon);
        this.tjcode = StringEscapeUtils.escapeHtml4(this.tjcode);
        this.tjname = StringEscapeUtils.escapeHtml4(this.tjname);
        this.deptname = StringEscapeUtils.escapeHtml4(this.deptname);
        this.empno = StringEscapeUtils.escapeHtml4(this.empno);
        this.empname = StringEscapeUtils.escapeHtml4(this.empname);
        this.gwname = StringEscapeUtils.escapeHtml4(this.gwname);
        this.phone = StringEscapeUtils.escapeHtml4(this.phone);
        this.headimg = StringEscapeUtils.escapeHtml4(this.headimg);
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("yearmon", getYearmon())
                .append("tjcode", getTjcode())
                .append("tjname", getTjname())
                .append("deptname", getDeptname())
                .append("empno", getEmpname())
                .append("empname", getEmpname())
                .append("gwname", getGwname())
                .append("phone", getPhone())
                .append("headimg", getHeadimg())
                .toString();
    }
}
